import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import fire_component_msg from '@feidao/web/atom/browser/fsm/fire-component-msg';
import show from '../atom/show';
import hide from '../atom/hide';

export default async function a002(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	//  是否有有效期限至
	//保存
	const incentive_type_value = fd.data.node.querySelector<HTMLInputElement>('[data-feidao-id="incentive_type"]').value;
	if (!incentive_type_value) {
				fire_component_msg('zj-common-002', 'ec-001', 'fail', '请输入奖惩项目');
					    }else {
							fire_component_msg('zj-common-002', 'ec-001', 'success', '添加成功');
						}
}
